#include <header.h>

int main(){


    int test_fd = open("./test/1.txt", O_RDWR);
    int zs_fd = open("./zs/1.txt", O_RDWR|O_CREAT, 0666 );

    while(1){
        char buf[4096] = {0};
        ssize_t ret = read(test_fd, buf, sizeof(buf));
        if(ret == 0){
            break;
        }

        write(zs_fd, buf, ret);
    }

    close(test_fd);
    close(zs_fd);
    return 0;
}

